{% extends '::base.html.twig' %}

{% block javascript %}
	{{ parent() }}
	<link rel="stylesheet" href="{{ asset('bundles/showstop/css/redmond/theme.css') }}">
	<script src="{{ asset('bundles/showstop/js/ui/jquery.ui.core.js') }}"></script>
	<script src="{{ asset('bundles/showstop/js/ui/jquery.ui.widget.js') }}"></script>
	<script src="{{ asset('bundles/showstop/js/ui/jquery.ui.datepicker.js') }}"></script>
	<script>
	$(function() {
		$( "#form_first_aired" ).datepicker( { dateFormat: 'yy-mm-dd' });
		$( "#form_return_date" ).datepicker( { dateFormat: 'yy-mm-dd' });
	});
	</script>
</head>
{% endblock %}


{% block stylesheets %}
	{{ parent() }}
	<style type="text/css">
		#form_description {
			width: 450px;
			height: 200px;
		}
		#form_comment, #form_source {
			width: 450px;
			height: 50px;
		}
	</style>
{% endblock %}

{% block body %}
	{{ parent() }}
	
	{% if is_granted('IS_AUTHENTICATED_FULLY') %}
		<h1>Edit Series</h1>
		<form method="POST" action="" {{ form_enctype(form) }}>
			<table border="0" width=850 style='table-layout:fixed'>
				<tr>
					<td width="20%"><h3>Series: </h3></td>
					<td>{{ form.vars.value.name }}</td>
					{{ form_widget( form.seriesID ) }}
					{{ form_widget( form.name ) }}
					
				</tr>
				<tr>
					<td width="20%"><h3>First Aired: </h3></td>
					<td>
						{{ form_widget( form.first_aired ) }}
					</td>
				</tr>
				<tr>
					<td width="20%"><h3>Network: </h3></td>
					<td>{{ form_widget( form.network ) }}</td>
				</tr>
				<tr>
					<td width="20%"><h3>Status: </h3></td>
					<td>{{ form_widget( form.status ) }}</td>
				</tr>
				<tr>
					<td width="20%"><h3>Return Date:  </h3></td>
					<td>
						{{ form_widget( form.return_date ) }}
					</td>
				</tr>
				<tr>
					<td width="20%"><h3>Description: </h3></td>
					<td>{{ form_widget( form.description ) }}</td>
				</tr>
				<tr>
					<td width="20%"><h3>Source: </h3></td>
					<td>{{ form_widget( form.source ) }}</td>
				</tr>
				<tr>
					<td width="20%"><h3>Comment: </h3></td>
					<td>{{ form_widget( form.comment ) }}</td>
				</tr>
				<tr>
					<td width="20%"><h3>Fan art: </h3></td>
					<td>{{ form_widget( form.file ) }}</td>
				</tr>
			</table>
			<br/>
			<center><input type="submit" value="Submit" class="grey-button"/></center>
		</form>
	{% endif %}
 {% endblock %}

